import javax.swing.*;
import javax.swing.event.*;
import java.awt.event.*;
import java.awt.*;
import javax.swing.tree.*;
import javax.swing.border.*;


public class voteynresult extends JInternalFrame implements InterInterface
{
	public JLabel lab = new JLabel("YES/NO Vote Result",JLabel.CENTER);
	public voteynresult()
	{
		super("Yes/No Vote Result",false,true,false,false);
		t22.setText("");
		
	}
	public void voteynresult1()
	{
		this.setBounds(65,50,410,300);
		setVisible(true);
		
		Container c = getContentPane();
		c.setLayout(null);
		
		t22.setBounds(48,60,300,180);
		t22.setBorder(new LineBorder(Color.white,2));
		c.add(t22);
		lab.setBounds(0,10,410,30);
		lab.setFont(new Font("Verdana",Font.PLAIN,16));
		c.add(lab);
		
		t22.setFont(new Font("Verdana",Font.PLAIN,14));
		t22.setText("Total Voter :     " +(Integer.parseInt(vyes.getText()) + Integer.parseInt(vno.getText()))+"\n\n");
		t22.append("Yes Takes :     "+vyes.getText()+" vote\n\n");
		t22.append("No Takes :     "+vno.getText()+" vote\n\n");
		
		try
		{
			UIManager.setLookAndFeel(looks[1].getClassName());
			SwingUtilities.updateComponentTreeUI(this);
		}
		catch(Exception ex)
		{
			ex.printStackTrace();
		}
	}
	
}
